﻿using NLog;
using Quartz;
using Sample.Core.Services;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Sample.Jobs
{
    public class MyJob1 : IJob
    {
        private readonly Logger logger = LogManager.GetCurrentClassLogger();
        private readonly IUserService _service;
        public MyJob1(IUserService service)
        {
            this._service = service;
        }

        public async Task Execute(IJobExecutionContext context)
        {
            logger.Error("Start MyJob1");
            var dto = _service.GetUserDto();

            await Task.CompletedTask;
        }
    }
}
